//定义studentService(任务：向后台发出请求)
app.service("studentService",function ($http) {
    //1.定义查询所有学生的方法
    this.getAllStudents = function() {
        return $http.get("student/list");
    }
    //2.条件查询带分页
    this.search =function(page,pagesize,entity){
        return $http.post("student/search?page="+page+"&pagesize="+pagesize,entity);
    }
})
